// 商品数据集合
const mongoose = require('mongoose')
require('./connect')

const Schema = mongoose.Schema

const goodsSchema = new Schema({
    _id:"String",
    src:"String",
    goods_name:"String",
    goods_price:"String",
    weight:"String",  //质量
    company:"String",  //单位
    brand:"String",   //品牌
    specifications:"String" //规格
})

const goodsModel = mongoose.model('goods',goodsSchema)

module.exports = goodsModel